Skip to content

Instantly share code, notes, and snippets.

@jinsley8
jinsley8 / google-tag-manager.php
Created February 13, 2022 17:53
Enqueue Google Tag Manager script without tracking Admin
/**
* Enqueue Google Tag Manager script
*
*/
/* Add Google Tag Manager javascript code as close to
the opening <head> tag as possible
=====================================================*/
define("GTM_TAG","GTM-XXXXXX", false); // Replace with GTM tracking ID
@porjo
porjo / dump_route53_records.md
Last active May 8, 2024 11:38
Export route53 records to CSV

Retrieve hosted zones with aws route53 list-hosted-zones then enter the zone Id below:

aws route53 list-resource-record-sets --hosted-zone-id "/hostedzone/xxxxxxxxxxx" | \
   jq -r '.ResourceRecordSets[] | [.Name, .Type, (.ResourceRecords[]? | .Value), .AliasTarget.DNSName?]  | @tsv'
@cg00001
cg00001 / init.lua
Last active May 8, 2024 11:37
Textadept sample configuration
-- Adjust the default theme's font and size.
if not CURSES then
view:set_theme('base16-irblack', {font = 'Inconsolata Condensed Medium', size = 14})
end
-- UI Size, this works in 1366x768.
ui.size = {600,742}
-- Enable word-wrapping.
view.wrap_mode = 1
@kenji21
kenji21 / xcode-previous-older-sdks.md
Last active May 8, 2024 11:37
Use previous/older SDKs with Xcode
@EmadAdly
EmadAdly / install-android-sdk-in-ubuntu.md
Last active May 8, 2024 11:37
install JDK and Android SDK on Linux Ubuntu

install openjdk

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
@cprima
cprima / README.md
Last active May 8, 2024 11:37
Google MyActivity YouTube Comment Delete Script 💬❌

CommentCleanser for YouTube 💬❌

Description

Looking to take control of your digital history? CommentCleanser for YouTube lets you efficiently delete old YouTube comments from Google's MyActivity. Prioritize the removal of older comments, ensuring a leaner digital footprint and a conscious cleanup of your online history.

The script has been designed for users who have a significant number of YouTube comments and wish to delete them in bulk from Google's MyActivity page. By leveraging JavaScript, it provides a means to automate the process of deleting individual comments, offering the user control over how many comments to delete at once.

@telent
telent / gist:9742059
Last active May 8, 2024 11:36
12 factor app configuration vs leaking environment variables
App configuration in environment variables: for and against
For (some of these as per the 12 factor principles)
1) they are are easy to change between deploys without changing any code
2) unlike config files, there is little chance of them being checked
into the code repo accidentally
3) unlike custom config files, or other config mechanisms such as Java
@gabfiocchi
gabfiocchi / index.php
Created February 3, 2021 15:02 — forked from kosso/index.php
Proxy script for Shoutcast audio streams.
<?php
// Proxy script for Shoutcast audio streams.
// Overcomes the CORS issue when using JavaScript to fetch streams for playback and analysis.
// Also http > https
/*
// .htaccess file
// eg: index.php and .htaccess in /radio on your host.
// Point JS/fetch to https://yourhost/radio/audio.mp3 (or any made-up .mp3 name)
@dankamel
dankamel / BottomSheetDesign.swift
Last active May 8, 2024 11:29
Native iOS 15 Adjustable Bottom Sheet In SwiftUI (half bottom sheet)
import SwiftUI
struct BottomSheetDesign: View {
@State var showSheet: Bool? = nil
var body: some View {
Button(action: { showSheet = true }) {
@dcxSt
dcxSt / casper_installation_notes.md
Last active May 8, 2024 11:25
Casper Installation Notes Ubuntu 22.04, Xilinx Vivado 2021.1, Matlab R2021a

Warning: I've been told by the CASPER developers that our specific combination of versions of the software in this document are not supported and break the software, which is why we were not able to get simulation working in Simulink. Follow the casper setup walkthrough and use this document only to troubleshoot if you get similar errors.

Installation Notes

Build computer

Install Ububtu 22.04.1 on ssd
  • Netword was connected for updates
  • Create account